import React from 'react';
import './index.less'
export interface CenterThemeProps {
  text: string
  children?: React.ReactNode
  backgroundUrl?: string
}
const CenterLogin = ({ children, backgroundUrl }: CenterThemeProps) => {
  const style:any ={};
  if(backgroundUrl){
    style.backgroundImage = `url(${backgroundUrl})`
  }
  return (

    <div className='center-theme-container' style={style}>
      <div className='center-theme-panel'>
        {children}
      </div>
    </div>
  )
}
export default CenterLogin